package cn.iocoder.yudao.module.shop.controller.admin.crossorder.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 跨店铺 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ShopCrossOrderBaseVO {

    @Schema(description = "会员id", requiredMode = Schema.RequiredMode.REQUIRED, example = "18377")
    @NotNull(message = "会员id不能为空")
    private Long memberId;

    @Schema(description = "会员名", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotNull(message = "会员名不能为空")
    private String memberName;

    @Schema(description = "艾灸师id", requiredMode = Schema.RequiredMode.REQUIRED, example = "17895")
    @NotNull(message = "艾灸师id不能为空")
    private Long userId;

    @Schema(description = "艾灸师名", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotNull(message = "艾灸师名不能为空")
    private String userName;

    @Schema(description = "订单id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23498")
    @NotNull(message = "订单id不能为空")
    private Long orderId;

    @Schema(description = "订单备注", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "订单备注不能为空")
    private String orderComment;

    @Schema(description = "源店铺id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5115")
    @NotNull(message = "源店铺id不能为空")
    private Long sourceTenantId;

    @Schema(description = "源店铺名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotNull(message = "源店铺名字不能为空")
    private String sourceTenantName;

    @Schema(description = "订单店铺id", requiredMode = Schema.RequiredMode.REQUIRED, example = "30731")
    @NotNull(message = "订单店铺id不能为空")
    private Long targetTenantId;

    @Schema(description = "订单店铺名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotNull(message = "订单店铺名字不能为空")
    private String targetTenantName;

    @Schema(description = "价格/次数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "价格/次数不能为空")
    private Integer payValue;

    @Schema(description = "是否次数支付", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否次数支付不能为空")
    private Boolean isTimesCharge;

    @Schema(description = "是否余额支付", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否余额支付不能为空")
    private Boolean isWalletCharge;

    @Schema(description = "订单时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "订单时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime orderTime;

    @Schema(description = "是否确认", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否确认不能为空")
    private Boolean confirmed;

}
